package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.PortfolioFundTradeDao;
import com.codi.bus.core.dao.PortfolioTradeDao;
import com.codi.bus.core.domain.PortfolioFund;
import com.codi.bus.core.domain.PortfolioFundTrade;
import com.codi.bus.core.domain.PortfolioTrade;
import org.springframework.stereotype.Repository;

/**
 * Created by asus on 2017/12/6.
 */
@Repository("portfolioFundTradeDao")
public class PortfolioFundTradeDaoImpl extends GeneratedBaseDaoImpl<PortfolioFundTrade> implements PortfolioFundTradeDao {
    @Override
    public Long insertByCode( PortfolioFundTrade portfolioFundTrade) {
        super.insert(this.generateStatement("insert"), portfolioFundTrade);
        return portfolioFundTrade.getPftPortfolioFundTradeId();
    }

}
